﻿using System;

namespace AutoDb {
	/// <summary>
	/// 
	/// </summary>
	sealed class InvalidDbObjectException : Exception {
		/// <summary>
		/// 
		/// </summary>
		/// <param name="obj"></param>
		/// <param name="fmt"></param>
		/// <param name="args"></param>
		public InvalidDbObjectException(DbObject obj, string fmt, params object[] args)
			: base(string.Format(Properties.Main.ErrorInvalidDbObject, string.Format(fmt, args), obj.LineInfo)) {
		}
	} // end of InvalidDbObjectException.
}
